#ifndef FORM_JSDZ_H
#define FORM_JSDZ_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkInterface>
#include <QNetworkRequest>
#include <QJsonObject>
#include <QJsonArray>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>
#include <QListWidgetItem>

namespace Ui {
class Form_jsdz;
}

class Form_jsdz : public QWidget
{
    Q_OBJECT

public:
    explicit Form_jsdz(QWidget *parent = nullptr);
    ~Form_jsdz();
    bool putBaseIn( QJsonObject &in, QString code);

private slots:
    void closeEvent(QCloseEvent *event);
    void showEvent(QShowEvent *event) ; //override();

    void on_pbRun_clicked();
    void on_pbUpload_clicked();
    void on_pbCalculate_clicked();
    void on_pbExit_clicked();


private:
    Ui::Form_jsdz *ui;

    QSqlQuery *qrm, *qro;
    QString sq;

    QNetworkRequest request;
    QNetworkAccessManager manager ;
    QJsonObject ret3201;
    QJsonObject ret3202;
    QJsonObject ret9101;

    QString currentMsgid;

};

#endif // FORM_JSDZ_H
